/*
 * @Description:
 * @Version: 2.0
 * @Autor: kafei
 * @Date: 2021-12-10 17:32:54
 * @LastEditors: kafei
 * @LastEditTime: 2021-12-21 14:30:41
 */
export const formData = [
  {
    props: 'mName',
    label: '菜单名称',
    type: 'el-input',
    config: {
      placeholder: '请输入菜单名称',
      clearable: true

    },
    pattern: [
      { required: true, message: '请输入用户名称', trigger: ['blur', 'change'] }
    ]
  },
  {
    props: 'path',
    label: '访问路径',
    type: 'el-input',
    config: {
      placeholder: '请输入访问路径',
      clearable: true
    },
    pattern: [
      { required: true, message: '请输入访问路径', trigger: ['blur', 'change'] }
    ]
  },

  {
    props: 'enName',
    label: '组件名称',
    type: 'el-input',
    config: {
      placeholder: '请输入组件名称,建议与vue文件中name一致',
      clearable: true
    },
    pattern: [
      { required: true, message: '请输入组件名称', trigger: ['blur', 'change'] }
    ]
  },

  {
    props: 'cilentType',
    label: '应用类型',
    type: 'el-select-options',
    config: {
      placeholder: '请选择应用类型',
      options: [
        { label: '内部应用', value: '0' },
        { label: 'vue应用', value: '1' },
        { label: 'react应用', value: '2' }
      ]
    },
    pattern: [
      { required: true, message: '请选择应用类型', trigger: ['blur', 'change'] }
    ]
  },

  {
    props: 'componentPath',
    label: '组件地址',
    type: 'el-input',
    config: {
      placeholder: '请输入组件地址',
      clearable: true
    },
    pattern: [
      { required: true, message: '请输入组件地址', trigger: ['blur', 'change'] }
    ]
  },
  {
    props: 'orderByMenu',
    label: '层级',
    type: 'el-input',
    config: {
      placeholder: '请填写层级',
      clearable: true
    },
    pattern: [
      { required: true, message: '请填写层级', trigger: ['blur', 'change'] }
    ]
  },
  {
    props: 'mDesc',
    label: '菜单描述',
    type: 'el-input',
    config: {
      type: 'textarea',
      placeholder: '请输入菜单描述',
      autosize: { minRows: 4, maxRows: 10 },
      clearable: true,
      maxlength: '200',
      showWordLimit: true
    },
    pattern: [
      { required: true, message: '请输入访问路径', trigger: ['blur', 'change'] }
    ]
  }

]
